package com.cc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

@Configuration  //配置类
@ComponentScan("com.cc")    //开启组件扫描
@PropertySource("classpath:database.properties")  //引入外部属性文件
@Import({JdbcConfig.class ,  MyBatisConfig.class})   //导入其他配置类
public class SpringConfig  { }
